package cc.linker.steplink.crm.commons.utils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 组装list 单个或者多个已逗号分隔的字符串
 **/
public class CreateListStrUtil {

   public static List<String> build(String str) {
        List<String> list = new ArrayList<>();

        if (!str.contains(",")) {
            list.add(str);
        } else {
            list = Arrays.asList(str.split(","));
        }

        return list;
    }
}
